package com.example.maoyanmovie.model;

public class Seat {
    public static final int STATUS_AVAILABLE = 0;  // 可选
    public static final int STATUS_SELECTED = 1;   // 已选
    public static final int STATUS_SOLD = 2;       // 已售

    private int row;        // 行号
    private int column;     // 列号
    private int status;     // 座位状态
    private double price;   // 座位价格

    public Seat(int row, int column, int status, double price) {
        this.row = row;
        this.column = column;
        this.status = status;
        this.price = price;
    }

    public int getRow() {
        return row;
    }

    public void setRow(int row) {
        this.row = row;
    }

    public int getColumn() {
        return column;
    }

    public void setColumn(int column) {
        this.column = column;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getSeatName() {
        return (row + 1) + "排" + (column + 1) + "座";
    }
}
